package com.jhgk.jhcee.system.component;

import com.jhgk.jhcee.system.service.SysResourceInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * 初始化角色资源
 * @author: xiezhongping
 * @description:
 * @date: 2021/8/26 10:21.
 */
@Component
public class ResourceRoleRulesHolder {

    @Autowired
    private SysResourceInfoService sysResourceInfoService;

    @PostConstruct
    public void initResourceRolesMap() {
        sysResourceInfoService.initResourceRolesMap();
    }
}
